fix error caused by constant renaming