log dispatch callback small fixes