Fixes #2940: Unable to remove smart parameter with long name