Attempted fix for lua issue