fix pack script