British teen heartthrobs One Direction have come to an agreement that allows them to keep their name after a dispute with a U.S. group.

The two groups issued a news release from London saying a California musical group formerly known as One Direction will change its name to Uncharted Shores.

One Direction from the U.S. had sued the British band for $1 million US, saying they had received hate mail and death threats after the British boy band became an international sensation.

British One Direction members Niall Horan, Zayn Malik, Liam Payne, Harry Styles and Louis Tomlinson came together in 2010 after trying out individually for Simon Cowell's TV talent show The X Factor.

Their debut album Up All Night soared to the top of the pop charts in North America and Britain earlier this year.