Bugfix for correct reporting when recursion errors occur