fix patch for 5.4