Fixed a bug in default2 function.

Change the undefined variable.