Fix 'Use of uninitialized value in string eq' error