Fix issue with invalid days in data