I think the second arg being passed should be ```name```, not ```val```? This may be left over from a previous refactoring. Please update the other calls to instantiate InvalidParam as well...