fixed baseWindow to work on win8, still errors
but appear to work