fix for pg gem