Fixed exception handler error