The `foreach` body is indented wrong. It has to be indeted by 4 spaces.