Fix pg for build