fix auto build bug