fixes bug in filters