removing attr error