Fix unset variable reference