fixed global packages bug.