fix typo, closes #3462

Thanks to github user @gaulinmp for submitting a bug report and the
suggested fix.
Merge pull request #3463 from ivanov/fix-3462

fix typo, closes #3462

Thanks to github user @gaulinmp for submitting a bug report and the
suggested fix.