fixed issues where message was expected to be an object