fixed validation of attributed