Fixed bug for persist object