Fix machine type bug