na_cci: fix bug when handling devices