fixing lua extraction