fix wrong callback err issue