fixs for crash while adding slaves with id greater than 9