fix max pending persists