fix signal handle error