fix the timelapse bad calculate