Rectified errors in doc examples