Fixed error in adding class tabs