fixed bug when deleting childs (still in view)
reformated dmsystem.cpp