jam: fixed temporary variable not being cleared out from state file