fix get_time bug