fixed callback is called twice when two error messages send