Fix automatic rotation of stairs