fixes filtering issue