fixed worst fit to not segfault