index bugfix in LoopModel