Fix get_id_dict (reported by Tobias Grosser)