Fix bug handle process received message of broker

In this pull request:
+ Fix bug handle process received message of broker
+ Fix more type