Median Survival after multivariate Kaplan Meier Analysis

Dear experts,
I am a newbie.
I am performing an KM analysis and obtain the KM curve by the followings:
stcox outcome factorA factorB
stcurve, survival at1(pni_pfs=0) at2(pni_pfs=1)

Afterwards, I use the belows to obtain the median survival values:
stci if factorA==1
stci if factorA==0

But it seems the median survival values I got were different from the that I read from the graph.
Is it not a multivariate adjusted medians survival?
Please advise.
Thank you.