fix bug with untyped messages