fix class rendering