Fixed Bug in index