Hi,
just to let you know that debug in title not only does not work, also corrupts database so I cannot anymore open GS after this warning appears.
I then replaced data and discovered that the correct debug to remove ghosts was “Remove ghost children from group”… anyway you should give a look to that functions.