Fix error that occur when user cancel the authentication