fixed npm-registry bug