Really dumb error in trying to apply a filter