Oh, class redefinition? Perhaps move this out of the filter?