Fixed package installation bugs