Why the president was right