remove only on error