Things have a nasty 'habit of not turning out' the way you expect them to. [=things often do not turn out the way you expect them to]
He reached into his pocket for his keys 'by/from force of habit'. [=he did it without thinking because it is what he usually does]
I'm 'not in the habit of' making predictions, but I don't think there's much doubt about who will win this election.
(..) for Real Madrid! The most incredible finish in a Champions League final you'd ever see. Beckham with the winning goal, Real Madrid with the winning habit! They were down and out at two-nil. They've come back into it. And it's those three who have led them to European glory. (..)2007 Goal II: Living the Dream