fixing incomplete move to PGObject