Bugfix in boundary reader