fix TypeResolver