bugs fixed, maximal repeats tests segfault no more