adding patch for average X in Z decays