Fix for #4446.
Merge pull request #4448 from Segrain/master

Smallfix.