Avoided WPF bug.