Fix reading boundaries and groups