Fixed lua error that had been fixed before