Fix bad err reference