fix lua stuff