fixed wrong reading of domainsize