Fixed issue in persist with null arguments