fix issue with JSONArray