Fixed bug when installing pg gem