Fix case sensetive filtering bug