fix bug in server update timer
refactor client update timer