fixed bug in move_entry