Fixed err variable name.