fix for mezzanine postgres bug