Fix switched arguments. Fix TE machines with crafting pipes.