fix some 97+ lua errors