I am highlighting text based on selection things are working fine on click. But I am also saving its positions to later highlight on load. AT that time it\'s giving an error