improving strict mode violation error location