Fixed problem with hours window