Fix Update to work in windows

Fix Update to work in windows