Fix bug with showing [Object object] for message