Fix a-package not found and double reload problem