fix bug filtering