fixed an important windows bug