Fix chaining of commands.