fix bug of auto-complete setting