Fix for the stairs bug