Fixed spawning and removing of platforms.