Mercy beam glitch

Was playing mercy and noticed what seemed like a glitch when you have your beam on a target sometimes when the target takes damage the heal will stop and only start when you disconnect and reconnect the beam. Just wondering has anyone every had this glitch when playing mercy.