Fix pack building