Fixed lua stuff