Fixed printing lists of IDs