reged2ics: fix a bug