bug fix in from_package_loaded