fix infinite recursion in Error func