safeguard against mangled neighbourlist and last target neighbour > total neighbours