issue #2404:replace some deprecated enums using in the lua