fix TypeHandler sample