NodeJS minor bug fix