fixed an error in add stock