Allow selected as attribute

This fixes a bug that breaks select boxes in preferences.