Fixing sum of weight