fixed bug in persistence module