Fixes #1024
Typo.
Merge pull request #1025 from mdogan/fix/3.1/1024

Fixes #1024