Fix message callback index.
Merge pull request #785 from brendandahl/message-idx

Fix message callback index.