bug fix callback params