Method scanner returns invalid default value
for last parameter until this one has default value array().
This commit will fix this.