fixed extra windows bug