The obvious solution to this problem would be to get rid of the mental programs you have that are negative, and to make sure you have enough positive programs stored in your subconscious mind to ensure that your attitudes and actions will also be positive.