Excessive brown foam in an activated sludge process is most likely to occur when