Fixed minor lua error