fixing bug when installing Pg