fix persistent factory