fix bugs to length shingles