Extend ReadAttribute to check for write_attribute
Fix a typo