Fix the errors which were led by DeprecatedEnum.lua