Credit for plprofetes bugfix.