Correct the problem with doc test