fix syntex bugs in pack