fix callback not being passed correctly