Fix the error for setting the times