fixing jsonpnp callback