fix typos, reset memory before using