Actually fix losing windows bug