Fix abstract bugs where it runs off the edge of the page and perpetually
stays open on click.