fix class, when it is not set by default