selected device fix