fixed parsing empty json