Fix issue when no weight is specified for all entries