Fixes overwriting unauthorized errors.