add patch for bug 851231