Fix inconsistent code in the doc