Fix infinite loop when adding much more devices than the space available with a 50 try