fixed var name mistake in res_tracker