Method scanner returns invalid last parameter default value

Default value of last parameter is invalid until last parameter has default value array().
This commit will fix this.