fix little bug when update first

move to end