fix pg removal