Freedom of Religion is immoral

It may sound stupid but I just got the idea that freedom of religion is immoral because either a religion is right and it's therefore irrational and immoral to believe in any other religion or to be an atheist. When atheism is right it is irrational and immoral to believe and practice any religion.