remove stale data from error_history