Improved on the clumsy way we handle filter prototypes in lookup.js. This should fix filtering.