Fixed not clearing received messages from the  vector container.