fixed bug in persistence - 2