Make sure the royal icing has the proper consistency. Too runny and it will run over the sides; too stiff and it won't spread nicely. So, for the right consistency, first test the icing by lifting your spoon and letting the icing drip back into the bowl.