fixed move_index()