Fixed type error in filters.py