fix neighbor case