On the genesis of squat-type defects on rails