Fix site breakage on getSelection