patch for bug 1000243