make callback's errors consistent