Fixed a minor bug for updateWindOn method