More fixes to pH