bug fix for stock index