fix bit operation errors in topo status message factory