Fix machine group bug. group object get removed from machines.