bugfix: missing update of this.length