fixed bug with time update