fixed minor bug with resolving a targetted type