fixed endless loop in x25, but hashes are still wrong