fixed the time0 problem