Of course, going to doctor is important and you should do it, but you also need to do some things at home to prevent it. Try to eat more vitamins, it can be some pills, fruits, green vegetables. Don't dye your hair very often if you do it, use a professional hair dryer if you can afford it...