fix authorization code