fix invalid package.main