Resolve incorrect outer in inherited object