Fixed issue with generating filters