fix the checkTime bug....