fix receiving json data