fix accepted_packages bug