fixed id all for pg