fix machine tags add and delete