fix setError on result