Update package length check