little bug when update first

moved to end