fix class runtime