time update and fix updateposition bug