updated package.json and fixed bug