Buggy Bug Fixing 101
We've detected a bug. Let's try and squash it.
Step 1: Observe the code. Is it doing what it should be doing?
Step 2: Change the code. Make it do something better.
Step 3: Repeat until it doesn't break anything.
We're at step 1. Wish us luck.
Next step What could go wrong?