fix: Error: TypeError: undefined is not an object (evaluating 'Range.getAttribute')