controller: fixed controller set_dev_with_indexs