fix dao persist logic