fixed bug when github_code is undefined