It would be nice if there was a test for this to prevent future regression, as it looks like you're fixing a problem in the existing code.