added patch for 7.1.x compatibility