Also fix a problem with reading entries when modifying a group. Both problems found and analysed by Thomas Klausner.