Fix PluginService.addRecentCommand()