fix some signal issues