fix: correct exception generation