if len(fixedn) == 0:
        func = fitfun
        restore = None