fix minor time bug