I've found de-coupling to be the key to altering this sort of behaviour. The balance of my savings and investment accounts are separate from my budgeting. I allocate funds at the budget level, the balance of my various accounts being a secondary concern.