Perhaps insulting the Poles sends a message to someone else.
Or perhaps Obama was sabotaged by his speech writers or someone else...or perhaps his staff has such low moral and energy it is becoming error prone.
His staff just isn’t very good. Partially because a narcissist such as he would not follow the typical leader’s procedure of hiring folks smarter than himself for the help they would provide.