fixed correct hours when no hours is selected