fixes issue #1863
fixes issue #1863 tests
Merge pull request #1928 from ahmetmircik/fixIssue1863

Fixes issue #1863