stock bug fix