Fixed an indexing problem (Indexing into a vector.) and reduced the complexity of some very strange code
Fixed an indexing problem (Indexing into a vector.) and reduced the complexity of some very strange code

ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools