Fixed bug in windows version