Fix issue in getMovement(from, to)