bug with persist