Fix panic method