Fix precedence.
Don't change elements in a foreach-loop.