fixed CopyOnWriteMap casting failure at json serialization