centroid mismatch flag setting bug FIXED
(#25)