Fixed the " AttributeError: 'Refit' object has no attribute 'outputs' " error.