Bugfix: Must break loop when found correct namespace, so  and  are not emptied