fixed some bugs related with package pack