attr rewrite issue