Bugfix enhanced behavior

Enhanced behavior had some issues based on a process spawning several childs and those use the same handle-ids for different objects. This should fix them