Fix problem with sending commands.