fixed bug in persistance issue