fix uefi types detection