fix time stamp bug