I found an issue at `ReplaceGameObject` tool, it replaces the object without taking into consideration if its attached to a parent or not.