fixed bugs in packstack