Fix issue where 422 was returned from Github