Fixed lua error caused by wrong variable name