fixed packages bug