fixed up generated window