All the logic in this method is broken as you are using the first key from the second level of nested array, not for the key of the first level. So it is asking and returning something totally different. Try keeping the default each time it asks you and compare your dist file and your resulting file: you will get a mismatching result