Automorphisms of rational maps