Fixed sending error data to callbacks