Fixes when opened from a target=_blank anchor