fixed bug in assigning in_stock inventory