Fixes #6537 Fixing typo introduced in refactor