Bug fix for stair collision testing