Fixed setError call. closes #415