labyrinth bug fixes