Small correction in the captureForType method