Fixed a signal exception bug