fixed night hours bug