Fix getting of clazz