fix multiple class rules