Fix return type for console message type.