A wireless device receives one or more configuration parameters indicating a first beam detection set including a first reference signal and a second beam detection set including a second reference signal. The first reference signal overlaps in at least one symbol with the second reference signal. The wireless device measures, for beam failure and in response to the first beam detection set being different from the second beam detection set, both the first reference signal and the second reference signal.