fixed syntax error on index