pg gem troubleshooting