fix mixing internal errors with callback errors