fixed loss of jar variable

it became out of scope