Fix typo and add regression test.