Error Callback bug fixed