Temporary fix for the lua crashes