Shifting fixes. IDF counts for butterfly