Update terms weight