exception bug fixed