fix bug in export pack