Fixed missing 'isset' check for  index.