Fix UI infinite loop ignoring non-displayed events