Fix bug in filters