fix some global install issue