fix the windows bug