fix trim-do namespace segment