fixed bug where message_id wasn't being set on a trigger