Fixed a condition where uefi is not defined