Fix sig_t check