Resolve var in correct ns