Fixed a bug when receiving JSON payloads from Github.