Fix hill climbing bug