fix for activating window