fix first edit bug
save map state with drawing