Fix bug.
Fix test.