fixed map resave after update