Update namespace with leave/enter.