fix typos  to enable script to work