Fixed an infinite loop problem which led to a memory exhaustion problem.
Fixed an infinite loop problem which led to a memory exhaustion problem.

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