fix list-devices command