Something funny happened the day before Azerbaijan's presidential election - the election commission announced the winner.
On Tuesday, a day before the voting began, the smartphone app of the Central Election Commission released results showing President Ilham Aliyev, whose family has been at the helm of the Caspian Sea nation for four decades, winning 73% percent of the vote.
On Wednesday, the commission said Aliyev had won 85% of the vote. His closest contender, Jamil Hasanli, trailed with 6%, it said.
The commission apologised for the early result today, saying it was only a test at one polling station conducted by the software developer. It expressed "deep regret" for the "misunderstanding."
Mr Hasanli said the announcement bolstered his argument that the vote was rigged. He demanded a new election.
Mr Hasanli said: " Ilham Aliyev has no right to represent the Azerbaijani people. This election doesn't reflect the people's will."
Observers from the Organisation for Security and Co-operation in Europe said the election was marred by restrictions during the campaign and serious violations during the voting and during the counting of votes.
The vote "was undermined by limitations on the freedoms of expression, assembly and association that didn't guarantee a level playing field for candidates," the group said.
It cited detentions, criminal prosecutions, reports of physical attacks and other pressure on journalists as well as disproportionate media coverage of the president.
On voting day, the OSCE said its monitors reported ballot-box stuffing in 37 polling stations. It also called the vote count "overwhelmingly negative, with 58% of the observed polling stations assessed as bad or very bad."