on click of filter used to crash. This is now fixed