fix the errors which were led by DeprecatedEnum.lua