fixed bugs in package install