Fix a bug when the initial position in some dimension was negative.