Fix for pg gem