fix bug: class of mod with value can't be removed