Fixing callback in node