Fixed typos in IDs extracting