pg fixes