Fix panic feature causing TypeError