fix labyrinth bugs