fixed a bad bug in neighbors management (neighbors duplication)