bug fix signal handl