This all left the president with egg on his face sputtering