fixed a segfault where a particle couldn't be added back to the root