fixed a bug in TypeResolver