Fix crashes resulting from ApplyFilters()