Well, it's not THAT bad. ow about Polio vaccine, Flu vaccines, Hepatitis A and B vaccines, Yellow Fever vaccine- Measles, Mumps, Rubella, to name a few.
It is true that some viruses mutate so quickly that it is almost impossible to make an effective vaccine against them- but many don't.