Callback error logic fixed.