pH stabilization