Fix positioning to work on cases where the page opens scrolled