fixing pgobject issues