Fix callback with object hashing for PubSub