patch for bug 963977