Fixed bug in time_stamp