Bug fix after nodejs version upgrade