fixed handling of unknown classes