bug fix for move()