Fix for an Attribute Error in filter.py