Try to fix a bug

changed the index from 2 to 1 in line 364