Small fix in user message function