Corrupt dates and bad ranges fixed