small bugfixes in deleteParticle