fix debugging notice issue

property of object not set ($pg->ID).