fix hour and minute check