fixed errors in index