rangemanager corrected (wrong index count)