fix available list of IDS

this fix issue when you have e.g. vlan0 and vlan1 and vlan0 is deleted,
then old version allow to use id from 1 to 9, but fixed version allows
0 and from 2 to 9.