small fix for index