Fixed collisions when moving on a platform.