Currently it panics with: `invalid type: map, expected a sequence` which does not help debugging or what exactly is wrong and where