Making actually functional the error detection for the attribute location.