Fixed ArrayOutOfBoundsException when moving out of level.