fix a time bug. Thank LJ.