fix error in top-of-hour check