fixed incorrect break in hours checking loop