fix for window modalities