Error callback is now properly called.