fix element weights issue
take the center cut if there is more than one maxima