BUG: attr error fix