Fix FS#10841. Thanks to Thomas Martitz for spotting what was wrong.