Keep only the last error