Fix filtering of attributes to show/hide.