patch for bug 889847