Fix for search accordion opening and closing on initial load.