Changes to magic line - fixed on window resize