layer's visibility not keeped with some undo/redo