fixed bug that made stocks keep lingering even if they were at amount 0