Fix for Npart counting. The bug was causing FPE (Constantin)