fixed an issue with json array map