fix a nullref bug
rev the npm version