Fix setting new clazz error