fixing name resolution leak