Kenya's Olympic 800m champion David Rudisha suffered a shock defeat at home for the first time as a senior runner.
Rudisha, 26, is the world record holder over 800m but came second to 25-year-old Ferguson Rotich in Nairobi.
His finish was still enough to make the team for the World Championships in Beijing later this month.
"I am shocked by the defeat but I am happy to have made the team," said Rudisha, who put the loss down to a lack of fitness.
Rudisha won the 800m world title in Daegu in 2011 but missed the 2013 Moscow World Championships through injury.
"I have not done enough speed work, though I am 90% fit with no injury at the moment. I have three weeks to fix it," he added.