fix bug for signal