fixed syntax error in index