Correct bug, doc and test.