Added fix for not set package weights