You could just set defaultvalue correctly to name:funcID in the first place and you would not need defaultFuncID or this part of the change.