fix neighbors bug