fix labyrinth crash bug