exit 1 not 0 & fix typo