rd: fixed bug associated with required attributes