fix sg_persist RA for code format normalization