When your code does something unexpected:
Make sure you understand why
Before you change your code
Don't play wack-a-mole with bugs