fix signals bug