Remove aliasing problems in NIS code