Fixed bugs in ancestral fragment code.