Repair some error and make pack folder