Fix. Detect raise error in callback