fix for issue #212 ('Visibility' not saved)