fixed bug in setup for id ranges