Fix ghosts fucking with teleporters. (GitHub #519)