Greatly improve the reliability of badging with multiple windows