Use the correct variable when composing error messages!