fixes #3720
Merge pull request #5074 from luisparravicini/issue-3720

fixes #3720