bugfix in find_fits