fix filter.js