More often than not, the belief that you are bad contributes to the "bad" behavior. Change and learning occur most readily when you (a) recognize that an error has occurred and (b) develop a strategy for correcting the problem. An attitude of self-love and relaxation facilitates this, whereas guilt often interferes.
David D. Burns (1980). “Feeling Good: The New Mood Therapy”