Handle Rc and clear messageBuffer

When changing from aw to dw, some data was stored, resulting on an
unwanted message