pg gem problem solved