Followup e48ecbc5: fix fatal error due to undefined variable