fix issue with incomplete pg