fix container hierarchy bug in case of sub processes