bugfix in windows platform