fix crash in filter preferences