Delete some useless lines
Restore code for updating the grouped indicators' weight