Fix adding duplicate machines