Bugfixes for GitHub auth