Fix both code and doc.