fix for addclass