Fix attr parameter been pass to callback