fix null pointer for persistent json