Bugs fixed with local alignment
Bugs fixed with local alignment