Fix messages conversion problem

The main scenario of the program work operate without problems