do not remove external constants, fixes #1722