fix the indent and missing variable