stock firm bug fix