fix autopack script