fixed bug on win7 and added workaround for change window