fix_replen function

Find and fix inconsistent repeat lengths