fix github after auth redirect bug