fix for multiple windows