Fix bugs with install packages