fix bad indexing
get the correct id this time...