fix bug in filters