fixes bug in date_cleaner