fix receiving JSON message