fix class rule
init multiple class rules