Fixed some bugs when loading search filters.