Fix bug in new pack code for dot.