Fix lua error in gui plugin