fixed inventory safety stock change bug -- fixes #5