fix #14254  Modal Sometimes Does Not Appear after Multiple Displays in S...

fixes #14254