Fixed incorrect visibility of attributes