Small fix for unique message check.