fix typo in signal handler