Fix regression error cause by "ignoreExt" option of "min".

Fix regression in the API.