fixed the issue
Merge pull request #2906 from vlsd/issue#2889

Fixes issue #2889