default values for nullable optional arguments are not passed correctly