fix error when package export undefined