Small bug fix in the shifting procedure