Fix an exception bug.