Fix error cb scope