fix bug in move