The president was joking with the audience and getting some laughs when he realized what happened. “All of you know who I am,” he quipped.