Fixed incorrect use of dict.update in json replies