Fix processCommands.