Fixes a bug that broke the auth flow