fix bug for github code