fix #3889
Merge pull request #3891 from ivanov/fix-3889

fix #3889