Fix lua structures