There is no mistake. It is a perfect sentence.
You have several choices. You can say "when" or "if". You can replace "will" with "are". These choices change the meaning somewhat, but they are all correct.
In fact, you can replace "will" with ANY modal ("may", "might", "can", "should", etc.). The meaning changes, but you will always have a grammatical sentence.
There are two reasons for using "will". One is to make reference to the future. Another is to express certainty.