fix bug of auto_increment