patch for .length