fixed bug of auto