fixed problem with callback parameter not being passed correctly