fix windows bug