fixing pg gem