Fixed pg gem problem