fix bug of persistance