Fixed a few bugs when selecting the filter from the GUI.