fix timestamp bug