unify error on persist functions