fix bug

some deleted stock still affect adding new stock with duplicate flag