fix variable name
fix example code in doc