fixed an issue where completion search results would appear after the command bar had been closed