fix timestamp bug and tag bug