Why was Joan so hostile towards Don in later seasons?

I get that it was probably because the writers needed the partners divided to keep Don in limbo, but I still find it inconsistent with their relationship in earlier seasons. Don was always very supportive of Joan, and they had a good relationship.