Time_stamp assignment bug