Fix bug not saving :visible attribute [fixes #91]