Cleanup xml->lua