Fix bug with local commands.