Three patches, the first with a unit test confirming the bug, the second a fix for the reported typo. The third, most recent patch fixes a related problem uncovered by the fix in patch 2.
The three patches are avaiable from:
Looks good. applied and pushed