Fixed bug, where current stock could become negative