rewriteIDs if attribute is model