fixed auto-regenerating in windows