Store the correct ID for each annotation