Fixed err shadowing