fix timestump bug