fix terrible bug causing shit to break when there was missing data for a date