fix copy and paste error on an index