fix clean_last_months_data bug