timesamp fix