fixed error in pgsetup