fix package loading issues.