We discuss a Moser type argument to show when a deformation of a Lie group homomorphism and of a Lie subgroup is trivial. For compact groups we obtain stability results.