fix indent bugs in plot