fix recognition of machine type