Fix recognicion of repeated events