use resetLocalAttrs to fix inlining bugs