Fixed error occurred when logging to external provider while already logged in