fixing jsonarray error