fix no devices case