This should be offsetPos = new int[this.children.size()];