fix neighbor mem access