fix typos and handle wrong syntax better
typo