Fixed bug that caused it to ignore the filter