fix callback error logging