I think I found the error in index