Updated erros in script and package.json