fixed timstamp bug