Fix bug.
Find bug and make a small test case.
Fix bug.