fixed issue with null hours