fix persist bug