The sentence isn't grammatically correct, but, "some habits however, were to change" means;
Habit = something you do a lot, and in the same order, at the same time, for the same reason, say for an example, every time you talk on the telephone, you draw little patterns on some note paper, that's a habit; every time you have a cup of coffee, you want a cigarette, that's a habit.
Change = to make different.
Some habits (not all) were to change, just means something you do as a habit would have to stop or be altered for some reason.