err callback fix