fixing incomplete move to PGObject
Merge pull request #567 from einhverfr/master

fixing incomplete move to PGObject