Fixed problem with multiple collisions detection when happened only one.

Root-cause was in post-incrementing iterator instead of pre-incrementing.