Fixed bugs in split contigs, still something wrong in joins