Fixed issues with Undo/Redo and filled property of map elements.