fix Attributes Rewrite