Fix a bug in package install