fixed filter function bug