Fix an issue with Command.sendMessage