Fix: validation of attribute representation
Bugfixes for validation