fix error on exception