external login fix