fix to bug in pg installation