Fix crashes when changing changing visible filters/sorting options