bugfix: Fixed a bug that setPackageName is disabled.