Fix bug to allow 0 as message ID