Fix for raise exception bug.