Fixed const-ness issue in the sieving helper in identity