Solved bug in netsiS function: call to distance "ipsen" did not work