fixes timestamp bug