fix schedule empty pill time hour check