fixed small time error