Fixed a bug when loading package.json.