fixed idle counter bug in node.js