fix bugs on Package