fix bug when unselecting machines on key view