Fixed erros in segregation-filter