fix typo so terminate will work