Fix errs creation

Issue introduce with PR #254 and break spec