Fix node attribute in an error message