fix some bug of auto indent