fix not well formatted json message case