bug fix for github api exception