Fix Authentication flow is not completed