Fixing num neighbors