Fix two errors causing region groups to be parsed incorrectly