Khatami was upstaged at the U.N.