support signal
Fixed bugs of signal mechanism