fix bug in 'move anywhere' mode.