Fixed bugs blocking functionality of weighting and clear