Fixed problem in node side code