stage: fix for pendingFree flag in case the loco is in the last section
and not in automatic mode