Made a unecessary global lua var local.