Fix bugs in Damerau.pl