multiple fixes to handle only having one day of data