diff --git a/Telegram/DeployMacWin.sh b/Telegram/DeployMacWin.sh
index d9b4d70e0..a6ac0dd70 100755
--- a/Telegram/DeployMacWin.sh
+++ b/Telegram/DeployMacWin.sh
@@ -26,9 +26,8 @@ if [ ! -f "./../../tother/tsetup/tsetup.$AppVersionStr.exe" ]; then
     exit 1
 fi
 
-scp ./../Mac/Release/deploy/$AppVersionStr/tmacupd$AppVersion tupdates:tdesktop/static/tmac/
-scp ./../Mac/Release/deploy/$AppVersionStr/tsetup.$AppVersionStr.dmg tupdates:tdesktop/static/tmac/
-scp ./../../tother/tsetup/tupdate$AppVersion tupdates:tdesktop/static/tsetup/
-scp ./../../tother/tsetup/tportable.$AppVersionStr.zip tupdates:tdesktop/static/tsetup/
-scp ./../../tother/tsetup/tsetup.$AppVersionStr.exe tupdates:tdesktop/static/tsetup/
-
+scp ./../Mac/Release/deploy/$AppVersionStr/tmacupd$AppVersion tmaster:tdesktop/www/tmac/
+scp ./../Mac/Release/deploy/$AppVersionStr/tsetup.$AppVersionStr.dmg tmaster:tdesktop/www/tmac/
+scp ./../../tother/tsetup/tupdate$AppVersion tmaster:tdesktop/www/tsetup/
+scp ./../../tother/tsetup/tportable.$AppVersionStr.zip tmaster:tdesktop/www/tsetup/
+scp ./../../tother/tsetup/tsetup.$AppVersionStr.exe tmaster:tdesktop/www/tsetup/
diff --git a/Telegram/SourceFiles/localstorage.cpp b/Telegram/SourceFiles/localstorage.cpp
index ec288cc06..3af06399a 100644
--- a/Telegram/SourceFiles/localstorage.cpp
+++ b/Telegram/SourceFiles/localstorage.cpp
@@ -635,10 +635,12 @@ namespace {
 		_storageMap = storageMap;
 		_storageFilesSize = storageFilesSize;
 		_locationsKey = locationsKey;
-		_mapChanged = false;
 		_oldMapVersion = mapData.version;
 		if (_oldMapVersion < AppVersion) {
+			_mapChanged = true;
 			_writeMap();
+		} else {
+			_mapChanged = false;
 		}
 
 		if (_locationsKey) {